﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>删除指定账户--测试专用</title>
    <script src="Static/newestHTML/assets/js/jquery.min.js"></script>
</head>

<body>
    输入要删除的账号：
    <input type="text" id="account" />
    <br />
    <button value="确定" id="confirmDelete" >确定</button>
</body>

</html>
<script type="text/javascript">
    $(function () {
        $("#confirmDelete").on("click", function () {
            var account = $("#account").val();
            if (!account) {
                alert("删除账号不能为空!");
                return;
            }

            $.get("/Utility/DeleteAccount", { account: account }, function (data) {
                alert(data.info);
            })

        })
    })
</script>